// https://vitepress.dev/guide/custom-theme
import {h} from 'vue'
import type {Theme} from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import './style.css'
import {AntdTheme} from 'vite-plugin-vitepress-demo/theme'
import JvyouUI from 'jvyou-ui-bate'
import  'jvyou-ui-bate/style'

export default {
  extends: DefaultTheme,
  Layout: () => {
    return h(DefaultTheme.Layout, null, {
      // https://vitepress.dev/guide/extending-default-theme#layout-slots
    })
  },
  enhanceApp({app}) {
    // 注册全局组件
    app.component('Demo', AntdTheme)
    app.use(JvyouUI)
  }
} satisfies Theme
